// 此文件用于配置项和相关参数设置


// 搜索相关字段
const dataModel = {
    page: 1,
    limit: 20,
    deviceName: 1,
    fixAssetCode: "1",
    deviceNumber: 1,
    sort: '+id',
    deviceType: 1,
    deviceClass: 1,
    useDepartment: 1,
    responsible: "",
    productStartDate: "",
    productEndDate: "",
    deviceValue: "",
    model: "",
    taskState: "",
    current: "",
    size: ""
}
const dataComponent =
    // 查询条件dataModel
    [{
            type: 'input',
            label: '设备名称',
            model: 'deviceName',
            keyUpEnter: 'handleFilter'
        },
        {
            type: 'input',
            label: '固定资产编码',
            model: 'fixAssetCode',
            option: [1, 2, 3],
            labelWidth: "120px"

        },
        {
            type: 'input',
            label: '设备编号',
            model: 'deviceNumber',
            format: 'yyyy-MM-dd'

        },
        {
            type: 'input',
            label: '设备类别',
            model: 'deviceType',
            format: 'yyyy-MM-dd'
        },
        {
            type: 'input',
            label: '设备分类',
            model: 'deviceClass',
            format: 'yyyy-MM-dd'
        },
        {
            type: 'input',
            label: '使用部门',
            model: 'useDepartment',
            format: 'yyyy-MM-dd'
        },
        {
            type: 'input',
            label: '责任人',
            model: 'responsible',
            format: 'yyyy-MM-dd'
        },

        {
            type: 'input',
            label: '设备原值',
            model: 'deviceValue',
            format: 'yyyy-MM-dd'
        },
        {
            type: 'input',
            label: '型号',
            model: 'model',
            format: 'yyyy-MM-dd'
        }, {
            type: 'dateRangepicker',
            label: '投产日期',
            model: 'date1',
            format: 'yyyy-MM-dd'
        },
    ]
    // 表格相关显示字段
const tableColumn = [{
    key: 'id',
    event: null,
    label: "数据id",
}, {
    key: 'eqName',
    event: null,
    label: "设备名称"

}, {
    key: 'eqCode',
    event: null,
    label: "设备编码"

}, {
    key: 'eqNum',
    event: null,
    label: "设备编号"

}, {
    key: 'eqCategory',
    event: null,
    label: "设备分类"

}, {
    key: 'eqKind',
    event: null,
    label: "设备种类"

}, {
    key: 'eqDepartment',
    event: null,
    label: "所属部门"

}, {
    key: 'eqManager',
    event: null,
    label: "负责人"

}, {
    key: 'eqUseDay',
    event: null,
    label: "投产日期"

}, {
    key: 'eqOriginNum',
    event: null,
    label: "起始编码"

}, {
    key: 'eqText',
    event: null,
    label: "文字描述"

}, {
    key: 'eqCreateTime',
    event: null,
    label: "创建日期"

}, {
    key: 'eqStatus',
    event: null,
    label: "状态"

}]

const data = {
    dataModel: dataModel,
    dataComponent: dataComponent,
    tableColumn: tableColumn

}
export default data